<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        {{message}}<br>
        {{score++}}<br>
        <span v-once>{{message}}</span><br>
        <div> {{contentHTML}}</div><br>
       <div v-html='contentHTML'> {{contentHTML}}</div><br>
       <!-- 不能显示图片 -->
       <!-- <img src="imgUrl" ><br> -->
       <img v-bind:src="imgUrl" ><br>
       <img :src="imgUrl" ><br>
       <a :href="hrefUrl">跳转到百度</a>>
       <input type="text" value="1" v-model="count"/>
       <button @click="add">点击+1</button>

    </div>
    <script src="./node_modules/vue/dist/vue.js"></script>
</body>
<script>
    var vm = new Vue({
        el: "#app",
        data: {
            message: "uuuuu",
            score:1000,
            contentHTML:'<span style="color:red">红色的字体</span>',
            imgUrl:'https://tupian.sioe.cn/b/bing-home-image/pic/20200905.jpg',
            hrefUrl:'http://www.baidu.com',
            count:0
        },
        methods:{
            add:function(){
                this.count++;
            }
        }
    })
</script>

</html>